<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!--
Copyright 2008, 2009, 2010 Miguel Ángel Laguna Lobato

This file is part of Multiclinical Trial Web-PACS.

Multiclinical  Trial Web-PACS is free  software: you  can redistribute 
it and/or modify it under  the terms of the GNU General Public License 
as published by the Free  Software Foundation, either version 3 of the 
License, or (at your option) any later version.

Multiclinical  Trial Web-PACS is distributed  in the hope that it will 
be useful, but WITHOUT ANY WARRANTY; without even the implied warranty 
of  MERCHANTABILITY or  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
General Public License for more details.

You should have received a copy of the GNU General Public License
along with Multiclinical Trial Web-PACS.  If not, see 
<http://www.gnu.org/licenses/>. 
 -->

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions">

<!--
Components Attribute:

	${backBean} : backBean
	${showDelete} : boolean to hide or show delete image button. Default true.
	
Definitions:
 	
 -->

<ui:composition>

<h:panelGrid 
	rendered="#{backBean.thumbs != null}" 
	columns="2" id="cuerpo" styleClass="frmTabla">

	<f:facet name="header">
		<h:panelGroup styleClass="headFrm">
			<h:outputLabel 
				value="#{msgs['jsf.headers.SendImages']}" 
				styleClass="frmLabelHeader"/>
		</h:panelGroup>
	</f:facet>

	<h:outputLabel 
		styleClass="frmLabel" 
		value="#{msgs['jsf.generic.Host']} :" />
	<h:inputText 
		styleClass="frmInput" 
		value="#{backBean.destination.hostname}" />

	<h:outputLabel 
		styleClass="frmLabel" 
		value="#{msgs['jsf.generic.Port']} :" />
	<h:inputText 
		styleClass="frmInput" 
		value="#{backBean.destination.port}" />

	<h:outputLabel 
		styleClass="frmLabel" 
		value="#{msgs['jsf.generic.AET']} :" />
	<h:inputText 
		styleClass="frmInput" 
		value="#{backBean.destination.aeTitle}" />

	<h:outputLabel 
		styleClass="frmLabel" 
		value="" />
	<h:panelGroup style="float: right;">
		<h:commandButton 
			styleClass="frmButton" 
			value="#{msgs['jsf.actions.Send']}" 
			action="#{backBean.accSendImages}" />
		
		<c:if test="${empty showDelete or (!empty showDelete and showDelete)}">
			<h:commandButton 
				style="margin-left: 5px;"
				styleClass="frmButton"
				value="#{msgs['jsf.actions.DeleteSelected']}"
				action="#{backBean.accPrepareImagesToDelete}" />
		</c:if>
	</h:panelGroup>
</h:panelGrid>
	
</ui:composition>
</html>